__author__ = 'root'
#coding=gb18030
import string

print ('please input number:')
a = raw_input()
if int(a):#string to int
    for index in range(int(a)):
    # print string.join([str(index),'hello world'])# int to string
        item = string.join([str(index), 'hello world'])
        for i in range(len(item)):
            print i